/*
package com.scuvc.entity;

import java.util.List;

public class PageBean<T> {
    private final int FIRST_PAGE = 1 ; // 起始页
    private int curPage ; // 当前页
    private final int PAGE_SIZE = 3 ; // 每页显示条数
    private List<T> dataList ; // 数据集合
    private int totalPage ; // 总页数
    private int prePage ; // 上一页页
    private int nextPage ; // 下一页

    public int getFirstPage() {
        return FIRST_PAGE;
    }

    public int getCurPage() {
        return curPage;
    }

    public void setCurPage(int curPage) {
        if(curPage<=1){
            this.curPage = 1 ;
        }else if(curPage>=this.totalPage){
            this.curPage = this.getTotalPage();
        }else{
            this.curPage = curPage;
        }
    }

    public int getPageSize() {
        return PAGE_SIZE;
    }

    public List<T> getDataList() {
        return dataList;
    }

    public void setDataList(List<T> dataList) {
        this.dataList = dataList;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage() {
        if(dataList.size()%PAGE_SIZE==0){
            this.totalPage = dataList.size()/PAGE_SIZE;
        }else{
            this.totalPage = dataList.size()/PAGE_SIZE + 1 ;
        }
    }

    public int getPrePage() {
        return prePage;
    }

    public void setPrePage() {
        if(this.curPage==1){
            this.prePage = 1 ;
        }else{
            this.prePage = this.curPage - 1;
        }
    }

    public int getNextPage() {
        return nextPage;
    }

    public void setNextPage() {
        if(this.curPage==this.totalPage){
            this.nextPage = this.curPage;
        }else{
            this.nextPage = this.curPage+1;
        }
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "FIRST_PAGE=" + FIRST_PAGE +
                ", curPage=" + curPage +
                ", PAGE_SIZE=" + PAGE_SIZE +
                ", dataList=" + dataList +
                ", totalPage=" + totalPage +
                ", prePage=" + prePage +
                ", nextPage=" + nextPage +
                '}';
    }
}
*/
